<php>
	$this->display(tpl('head',true));
	$is_integral[intval($setting['is_integral'])]='checked';
	$is301[intval($setting['is301'])]='checked';
</php>
<fieldset class="layui-elem-field layui-field-title">
  <legend>广告设置</legend>
</fieldset>
<form id="SETForm" class="layui-form" method="post">

	<table class="layui-table my-tabel">
		<tbody>
			<tr>
				<td>广告网址是否跳转</td>
				<td>
					<input type="radio" name="web[is301]" title="否" value="0" {{$is301[0]}}/>
					<input type="radio" name="web[is301]" title="是" value="1" {{$is301[1]}}/>
				</td>
			</tr>
			<tr>
				<td>是否开启积分抵扣</td>
				<td>
					<input type="radio" name="web[is_integral]" title="否" value="0" {{$is_integral[0]}}/>
					<input type="radio" name="web[is_integral]" title="是" value="1" {{$is_integral[1]}}/>
				</td>
			</tr>
			<tr>
				<td>积分抵扣人民币</td>
				<td>
					<input type="number" style="width: 100px;" class="layui-input my-input" name="web[integral]"  value="<?php echo $setting['integral']?>" /> 个积分抵扣1元
				</td>
			</tr>
			
			<tr>
				<td colspan="2" class="my_button center" align="center">
					<input type="hidden" name="step" id="step" value="post" />
					<button class="layui-btn">立即提交</button>
				</td>
			</tr>
		</tbody>
		</tbody>
	</table>
</form>
<script>
	layui.use(['upload','form'], function(){
		var form = layui.form;
	})
</script>

<php> $this->display(tpl('foot',true));</php>
